package com.fone.player.play;

/**
 * 切换播放视频的Event，当EventBus注册了这个事件时会将这个对象传递给订阅者
 * 
 * @author kongxiaojun
 * @since 2014-5-29
 */
public class ChangeVideoEvent {

	/** 新的播放url */
	public String xyzPlayUrl;
	/** 是否已经播放了，如果没有就把播放器切到新的播放url上 */
	public boolean isPlaying;
	/** 是否全屏*/
	public boolean isFullScreen;
	/** 是否是相关视频*/
	public boolean isRelated;
	
	public ChangeVideoEvent(String xyzPlayUrl, boolean isPlaying, boolean isFullScreen,boolean isRelated) {
		super();
		this.xyzPlayUrl = xyzPlayUrl;
		this.isPlaying = isPlaying;
		this.isFullScreen = isFullScreen;
		this.isRelated = isRelated;
	}

	@Override
	public String toString() {
		return "ChangeVideoEvent [xyzPlayUrl=" + xyzPlayUrl + ", isPlaying=" + isPlaying + ", isFullScreen=" + isFullScreen + ", isRelated=" + isRelated + "]";
	}
	
}
